package es.us.idinfor.graph;

import org.jgrapht.graph.DefaultEdge;

public class Edge extends DefaultEdge {
	private static final long serialVersionUID = 1795164906426518083L;
	
	private long duration;
	
	public Edge(long time) {
		duration = time;
	}
	
	public long getDuration() {
		return duration;
	}
	
	public String toString() {
		String res = "";
		
		if(duration != 0) {
			res = Long.toString(duration);
		}
		
		return res;
	}
}
